<!DOCTYPE html>
	<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<title>Document</title>
		<link rel="stylesheet" href="../layui/css/layui.css">
		<link rel="stylesheet" type="text/css" href="../css/praise.css">
		<script src="../js/jquery-3.3.1.js"></script>
		<script src="../layui/layui.all.js"></script>
	</head>
	<body>
		<header>
			<a href="javascript:history.back(-1)" class="back"><img src="../img/back.png" height="18px"></a>
			<div class="center title">点赞</div>
		</header>
		
		<div class="content">
			<!-- <div class="flex h-portrait">
				<img src="../img/logo.png" height="50px">
				<div class="content-r">
					<div class="flex">
						<p>小苏苏赞了我</p>
						<p class="user-c">明天有人去爬山吗</p>
					</div>
				</div>
			</div> -->
		</div>
	</body>
</html>
<script>
	var userId=localStorage.getItem('uId');

	$.post('/meiyou/dongtai/selectNotDongtaiDianzan',{userId:userId},function(data) {
		console.log(data);
		var datas=data.extend.result;
		$.each(datas,function(i,val){
				$('.content').append("<div class=\"flex h-portrait\">\n" +
    "\t\t\t\t<img src=\"../img/logo.png\" height=\"50px\">\n" +
    "\t\t\t\t<div class=\"content-r\">\n" +
    "\t\t\t\t\t<div class=\"flex\">\n" +
    "\t\t\t\t\t\t<p>"+val.name+"赞了我</p>\n" +
    "\t\t\t\t\t\t<p class=\"user-c\">"+val.content+"</p>\n" +
    "\t\t\t\t\t</div>\n" +
    "\t\t\t\t</div>\n" +
    "\t\t\t</div>")
			})
	});
	$.post('/meiyou/dongtai/selectNotPinglunDianzan',{userId:userId},function(data) {
			console.log(data);
			var datas=data.extend.result;
			$.each(datas,function(i,val){
				$('.content').append("<div class=\"flex h-portrait\">\n" +
    "\t\t\t\t<img src=\"../img/logo.png\" height=\"50px\">\n" +
    "\t\t\t\t<div class=\"content-r\">\n" +
    "\t\t\t\t\t<div class=\"flex\">\n" +
    "\t\t\t\t\t\t<p>"+val.name+"赞了我</p>\n" +
    "\t\t\t\t\t\t<p class=\"user-c\">"+val.content+"</p>\n" +
    "\t\t\t\t\t</div>\n" +
    "\t\t\t\t</div>\n" +
    "\t\t\t</div>")
			})
		});
</script>